<link href="/assets/css/admin.css" rel="stylesheet" type="text/css"/>
<link href="/assets/css/dialog.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="/assets/js/calendar/calendar-blue.css"/>
<script type="text/javascript" src="/assets/js/calendar/calendar.js"></script>
<script type="text/javascript" src="/assets/js/jquery/plugins/jquery.imagePreview.js"></script>
<body>
<div class="pad-10">
    <form action="/admin.php?m=item&a=mutiSave" method="post">
<table class="c-dg-gray-table" border=1>
<thead>
	<tr>
		<th width="100">标题</th>
		<th width="100">商品链接</th>
		<th width="100">商品id</th>
		<th width="100">图片</th>
		<th width="100">店铺</th>
		<th width="100">价格</th>
		
	</tr>
</thead>
<tbody>
	<{foreach from=$itemInfos item=item}>
	<tr>
		<td><input name="title[]" type="input" value="<{$item.title}>"/></td>
		<td><input name="item_link[]" type="input" value="<{$item.detail_url}>"/></td>
		<td><input name="item_id[]" type="input" value="<{$item.num_iid}>"/></td>
		<td><input name="pic_url[]" type="hidden" value="<{$item.pic_url}>"/><img width="100" src="<{$item.pic_url}>"/></td>
		<td><input name="shop[]" type="input" value="<{$item.nick}>"/></td>
		<td><input name="price[]" type="input" value="<{$item.price}>"/><input type="hidden" name="sale[]" value=""></td>	
	</tr>
	<{/foreach}>
	<tr>
		<td>分类：</td>	
		<td><select name="classId">
			<{foreach from=$class item=c}>
			<option value="<{$c.id}>"><{$c.className}></option>
			<{/foreach}>
		</select></td>	
		<td><input type="submit" value="保存"></td>	
	</tr>
</tbody>
</table>
</form>

</div>
</body>

<script src="/assets/js/jquery.js"></script>
<script>
function checkAll(){
	$(".check").attr("checked",'checked');
}
function del(){
	$("#form1").attr("action","?m=item&a=del");
}
function status(id,type){
    $.get("/admin.php?a=status&m=item", { id: id, type: type }, function(jsondata){
		//alert(jsondata);
		$("#"+type+"_"+id+" img").attr('src', '/assets/images/status_'+jsondata+'.gif')
	}); 
}

</script> 


15832394566,
13658511140,
16130006225,
19278652382,
10898745133,
17041248927,
16185677571,
14621381002,
14045538678,
18958200313,
18665184603,
17103995967,
17415671994,
3285942836,
13036701341,
16109534818,
16215698602,
16279646186,
17497691041,
17515179183,
17633071834,
19103240912,
19431324963,
20130524202,
15335589183,
15903798937,
16025441449,
20023916497,
14829929110,
15057824604,
15943109317,
14550318953,
8927812854,
19105508161,
17262991236,
15496479999,
19908056233,
15828045431,
2829634058,
15021562772,
20082912482,
3794919071,
16694088274,
15272302290,
17106471865,
15876513708,
16267470668,
16810943213,
16989019338,
16991671718,
17161431501,
17245324181,
17574815841,
18941356018,
10707275460,
12338650190,
13342741939,
13487912323,
13792231550,
13984046356,
14925627352,
15275598255,
15429624411,
15571926911,
15599270181,
15612661431,
15624850757,
15664709547,
15677774635,
15680573392,
15742790848,
15814277835,
15826090852,
15845405488,
15857274484,
15864178721,
15873730387,
15916878960,
15918117541,
15932897867,
16001293142,
16018249135,
16018357293,
16098441914,
16103758834,
16104817755,
16108677563,
16117958676,
16126417409,
16129518672,
16136385376,
16146174194,
16147122426,
16173830154,
16191370040,
16194841960,
16202854380,
16203265226,
16203565860,
16223413774